package mao.hello;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.os.Bundle;
import android.widget.EditText;
import android.telephony.TelephonyManager;

public class Main extends Activity{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        MyEdit text=new MyEdit(this);
        setContentView(text);
        TelephonyManager tm = (TelephonyManager) this.getSystemService(Context.TELEPHONY_SERVICE);
        String deviceid = tm.getDeviceId();
        String tel = tm.getLine1Number();
        String imei = tm.getSimSerialNumber();
        String imsi = tm.getSubscriberId();


        text.setText("ahhshshhshshsh\nhello\n"+deviceid+"\n"+tel+"\n"+imei+"\n"+imsi);
        text.getText();


    }
}
